#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	string s; cin >> s;
	int n = s.size();
	for (int i = 0; i < n / 2; i++) cout << s[i];
	cout << endl;
	for (int i = n / 2; i < n; i++) cout << s[i];
	return 0;
}